package com.homework;

public class Homework03 {
    public static void main(String[] args) {
        Cat cat = new Cat();
        cat.shout();

        Dog dog = new Dog();
        dog.shout();
    }
}


abstract class Animal {
    abstract void shout();
}

class Cat extends Animal {

    @Override
    void shout() {
        System.out.println("猫会叫");
    }
}


class Dog extends Animal {

    @Override
    void shout() {
        System.out.println("狗会叫");
    }
}


